<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">

</head>
<body>

<input id="btnStart" type="button" value="aysnc-defer"/>

<script src="${pageContext.request.contextPath}/assets/js/jquery-3.2.1.min.js"></script>
<script>

    $(document).ready(function(){
        $("#btnStart").click(function(){
            defered();
        });
    });

    function defered() {
        var url = '${pageContext.request.contextPath}/async/defer';
        $.get(url, function (data) {
            console.log(data);
            defered();
        })
    }
</script>
</body>
</html>
